package org.holynite.fieldmanage.managed.model

import javax.faces.bean.ManagedBean
import javax.faces.bean.ViewScoped

/**
 * Created by midnite on 15/1/31.
 */
@ManagedBean
@ViewScoped
class ChargeRuleFormBean implements Serializable {
    String ruleName, selectedRule, searchKeyword
    Integer beginHour, beginMinute, endHour, endMinute
    Double price
    Boolean addMode

    ChargeRuleFormBean() {
        addMode = false
        searchKeyword = ""
    }

    void clearForm() {
        ruleName = ""
        beginHour = 0
        beginMinute = 0
        endHour = 0
        endMinute = 0
        price = 0
    }

    void clearSearch() {
        searchKeyword = ""
    }
}
